//
//  MultiLineView.swift
//  HuaYun
//
//  Created by enghou on 2018/7/27.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class MultiLineData: NSObject {
    
    var index = -1
    
    var data = 0.0
    
    var strokeColor: UIColor = .clear
    
}

class BigData: NSObject {
    
    var id = ""
    
    var datas: Array<MultiLineData> = []
    
    var fillColor: UIColor = .clear
    
}

class MultiLineView: UIView {
    
    //几批数据
    
    // initwithframe
    
    var marker: UIView = UIView()
    
    let tickets: CAShapeLayer = CAShapeLayer() //开票
    
    let backpayment: CAShapeLayer = CAShapeLayer() //回款
    
    let ticketsnotpay: CAShapeLayer = CAShapeLayer() //开票未回款
    
    let all: CAShapeLayer = CAShapeLayer()
    
    override init(frame: CGRect) {
        
        super.init(frame: frame)
        
        tickets.frame = self.bounds
        
        self.layer.addSublayer(tickets)
        
        backpayment.frame = self.bounds
        
        self.layer.addSublayer(backpayment)
        
        ticketsnotpay.frame = self.bounds
        
        self.layer.addSublayer(ticketsnotpay)
        
        all.frame = self.bounds
        
        self.layer.addSublayer(all)
        
    }
    
    
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    // feedData
    
    override func draw(_ rect: CGRect) {
        
        super.draw(rect)
        
        
    }

}
